// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//________________________________
/*1.引入Eelement*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//使用ElementUI
Vue.use(ElementUI);

//________________________________
/*2.引入axios*/
import axios from "axios";
//配置axios的基础路径
axios.defaults.baseURL = "https://www.fastmock.site/mock/8d82e95dc59d8c044f5c584ae33997bb/student"
//配置axios的全局属性
Vue.prototype.$http = axios;

//________________________________

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
